import requests from '@/utils/request';
// 查询
export const reqGetJobCategoryList = (params) =>
  requests.post('/admin/jobCategory/query', params);
// // 获取院系专业树
// export const reqQueryDepAndMaJorAndClassroom = () =>
//   requests.get('/admin/jobCategory/queryDepAndMaJorAndClassroom');
// 工作类别新增
export const reqBatchAddJobCategory = (params) =>
  requests.post('/admin/jobCategory/add', params);
// 工作类别编辑
export const reqEditJobCategory = (params) =>
  requests.put('/admin/jobCategory/edit', params);
// 工作类别删除--批量
export const reqBatchDelJobCategory = (params) =>
  requests.post('/admin/jobCategory/remove', params);
// 检查工作名称是否重复
export const reqCheckJobCategoryCodeIsRepeat = (params) =>
  requests.get(`/admin/jobCategory/queryForCheckRepeatName/${params}`);
// 获取工作大类别
export const reqGetCategories = () =>
  requests.get(`/admin/jobCategory/queryForCategoryList`);

export const reqGetJobNameListByPid = (params) =>
  requests.get(`/admin/jobCategory/queryJobNameListByPid/${params}`);
